package com.example.webdemo.dao;

import com.example.webdemo.bean.customer;

import java.util.List;

public interface CustomerDao {
    int insert(customer customer);
    int insertAndReturnId(customer customer);
    int update(customer customer);
    int delete(int custId);
    customer findById(int custId);
    List<customer> findAll();
    List<customer> findByCondition(String custName, String custType, String custSource);
    List<customer> findByPage(int pageNum, int pageSize);
    int count();
    List<customer> findByUserId(int userId);
}
